/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有，侵权必究！
 */

package com.theme.passport.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "用户购买表单")
public class UserBuyForm {

    @ApiModelProperty(value = "类型不能为空，测试环境和正式环境区分", notes = "", required = true)
    @NotNull(message="类型不能为空 测试环境（0）和正式环境（1和其他都行）")
    private int type ;

    @ApiModelProperty(value = "receipt_data：需要客户端传过来的参数", notes = "", required = true)
    @NotBlank(message = "receipt_data不能为空")
    private String receipt_data ;

    @ApiModelProperty(value = "TransactionID：苹果配置的产品id", notes = "", required = true)
    @NotBlank(message = "transactionID不能为空")
    private String transaction_id ;

    @ApiModelProperty(value = "productId：购买字段吧", notes = "", required = true)
    //@NotBlank(message = "transactionID不能为空")
    private String product_id ;

    @ApiModelProperty(value = "类型", notes = "1主题，2组件,3壁纸", required = true)
    @NotNull(message="类型不能为空(1主题，2组件,3壁纸)")
    private Integer objectType;

    @ApiModelProperty(value = "对象id", notes = "", required = true)
    @NotNull(message="操作对象不能为空")
    private Long objectId;

    @ApiModelProperty(value = "购买价格 单位是分[传整数类型  1元就是100分]", notes = "购买价格")
    @NotNull(message="购买价格不能为空")
    private Long price;

    @ApiModelProperty(value = "购买状态", notes = "购买主题状态：1未支付,2已支付")
    @NotNull(message="购买状态不能为空")
    private Integer status;

    @ApiModelProperty(value = "当前用户id不用传", notes = "", required = true)
    private long userId ;

}
